package com.lcgroup.springdemo.demos.tree;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {

    private Long id;

    private String name;

    private Long parentId;

    private String parentName;

    private List<TreeNode> children;
}
